﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage_Sub.master" AutoEventWireup="true"
    CodeFile="report.aspx.cs" Inherits="search" Title="大众防骗"
    EnableViewState="true" EnableEventValidation="false" ViewStateEncryptionMode="Never" %>

<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="Server">
    <style>
        .navbar-default .navbar-nav > li:nth-child(3) > a,
        .navbar-default .navbar-nav > li:nth-child(3) > a:hover,
        .navbar-default .navbar-nav > li:nth-child(3) > a:visited{
            color:#09f;
        }
    </style>
</asp:Content>
<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceHolder_Search">
    <!--查找-->
    <%--<div>
        <form class="bs-example bs-example-form" role="form">
            <div class="row">
                <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                    <form class="bs-example bs-example-form" role="form">
                        <div class="input-group w-cxinput">
                        <span class="input-group-addon">
                            <div class="input-group-btn">
                                <button type="button" id="searchtxt" class="btn btn-default dropdown-toggle" data-toggle="dropdown" style="height:50px">
                                    手机号
                                    <span class="caret"></span>
                                </button>
                                <ul class="dropdown-menu">
                                    <li class="drop-item"><a href="#">手机号</a></li>
                                    <li class="drop-item"><a href="#">QQ号</a></li>
                                    <li class="drop-item"><a href="#">微信号</a></li>
                                    <li class="drop-item"><a href="#">身份证号</a></li>
                                    <li class="drop-item"><a href="#">邮箱</a></li>
                                    <li class="drop-item"><a href="#">网店</a></li>
                                </ul>
                            </div>
                        </span>
                            <input type="text" class="form-control" placeholder="请输入要查找的内容...如：手机号" style="height: 50px">
                        <span class="input-group-addon">
                            <button type="button" class="btn w-btncolor">
                                <span class="glyphicon glyphicon-search" style="color:#fff; font-size:25px;"></span>
                            </button>
                        </span>
                        </div>
                    </form>
                </div><br>
            </div>
        </form>
    </div>--%>
    <!--查找end-->
    <!--举报信息填写-->
    <div class="w-jbtop">举报详情</div>
    <div id="reports">
        <div class="numdetail">
            <%--<DIV id=reporttitle>举报您遇到的诈骗信息<asp:Label ID="Label_MPnumber_1" runat="server" Text="Label"></asp:Label>的评论或报告：</DIV>--%></div>
        </div>
        <asp:UpdatePanel ID="UpdatePanel3" runat="server" class="w-jbform" style="float:left;width:100%;padding-left:10px">
            <ContentTemplate>
                <asp:FormView ID="FormView1" runat="server" DataKeyNames="id" DataSourceID="ObjectDataSource_Report"
                    DefaultMode="Insert" OnItemInserting="FormView1_ItemInserting" OnDataBound="FormView1_DataBound"
                    OnItemInserted="FormView1_ItemInserted" style="float:left;width:100%;">
                    <InsertItemTemplate>
                        <div id="report" style="text-align: left;">
                        <span><img src="image/!.png">&nbsp;请保证所输入的内容为真实信息！</span><br>
                            <div class="row">
                                <label for="reporter" class="col-lg-2 col-md-2 col-sm-2 col-xs-2" style="text-align:right">举&nbsp;报&nbsp;类&nbsp;别：</LABEL>
                                <div class="field col-lg-10 col-md-10 col-sm-10 col-xs-10">
                                    <asp:DropDownList ID="DropDownList_type" runat="server" DataSourceID="ObjectDataSource_type"
                                        DataTextField="type" DataValueField="id" AutoPostBack="True" OnSelectedIndexChanged="DropDownList_type_SelectedIndexChanged"
                                        AppendDataBoundItems="True">
                                        <asp:ListItem Selected="True" Value="0">请选择举报类别</asp:ListItem>
                                    </asp:DropDownList>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="DropDownList_type"
                                        ErrorMessage="*请先选择举报类别！" InitialValue="0">请先选择举报类别!</asp:RequiredFieldValidator>
                                    <asp:ObjectDataSource ID="ObjectDataSource_type" runat="server" OldValuesParameterFormatString="original_{0}"
                                        SelectMethod="Get_Data_OrderBy_id" TypeName="DataSet_fp_DyhTableAdapters.Dyh_typeTableAdapter">
                                    </asp:ObjectDataSource>
                                </div>
                            </div>                      
                            <div class="row">
                                <label for="reporter" class="col-lg-2 col-md-2 col-sm-2 col-xs-2" style="text-align:right">举&nbsp;报&nbsp;内&nbsp;容：</label>
                                <div class="field col-lg-4 col-md-4 col-sm-4 col-xs-4">
                                    <asp:TextBox ID="TextBox_content" class="form-control" style="border:1px solid #09f" onblur="blurReporter();" onclick="if(this.value=='请输入关键字...')this.value='';"
                                        onfocus="focusReporter();" runat="server" Width="180px" ReadOnly="False" Text="请输入关键字..." />
                                    <div class="hint">
                                        <asp:RegularExpressionValidator ID="Validator1" runat="server" ControlToValidate="TextBox_content"
                                            Enabled="False" ErrorMessage="*电话/手机号码有误，由数字组成。" ValidationExpression="\d{3}[0-9]+"
                                            Visible="False" Display="Dynamic"></asp:RegularExpressionValidator>
                                        <asp:RegularExpressionValidator ID="Validator2" runat="server" ControlToValidate="TextBox_content"
                                            Enabled="False" ErrorMessage="*网站地址有误，请重新输入。如:http://www.abc.net 或 www.abc.net ！"
                                            ValidationExpression="(http(s)?://)?([\w-]+\.)+[\w-]+(/[\w- ./?%&amp;=]*)?" Visible="False"
                                            Display="Dynamic"></asp:RegularExpressionValidator>
                                        <asp:RegularExpressionValidator ID="Validator3" runat="server" ControlToValidate="TextBox_content"
                                            Enabled="False" ErrorMessage="*您输入的身份证号码有误！" ValidationExpression="\d{6}\d{2}\d{2}\d{2}[0-3][0-9]\d{3}[\d|X]|\d{15}"
                                            Visible="False" Display="Dynamic"></asp:RegularExpressionValidator>
                                        <asp:RegularExpressionValidator ID="Validator4" runat="server" ControlToValidate="TextBox_content"
                                            Enabled="False" ErrorMessage="*您输入的银行账号格式不正确！" ValidationExpression="[0-9]+"
                                            Visible="False" Display="Dynamic"></asp:RegularExpressionValidator>
                                        <asp:RegularExpressionValidator ID="Validator5" runat="server" ControlToValidate="TextBox_content"
                                            Enabled="False" ErrorMessage="*您输入的QQ号码有误！" ValidationExpression="[1-9]\d{3}[0-9]+"
                                            Visible="False" Display="Dynamic"></asp:RegularExpressionValidator>
                                        <asp:RegularExpressionValidator ID="Validator6" runat="server" ControlToValidate="TextBox_content"
                                            Enabled="False" ErrorMessage="*您输入的邮箱地址格式不正确！" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                                            Visible="False" Display="Dynamic"></asp:RegularExpressionValidator>
                                        <asp:RegularExpressionValidator ID="Validator7" runat="server" ControlToValidate="TextBox_content"
                                            Enabled="False" ErrorMessage="*您输入的网店格式不正确！" ValidationExpression="(\(\d{3}\)|\d{3}-)?\d{8}"
                                            Visible="False" Display="Dynamic"></asp:RegularExpressionValidator>
                                        <asp:RequiredFieldValidator ID="Validator0" runat="server" ControlToValidate="TextBox_content"
                                            ErrorMessage="*请输入有效的查询值！" InitialValue="请输入关键字..." Display="Dynamic" Enabled="False"
                                            Visible="False"></asp:RequiredFieldValidator>
                                        <asp:RequiredFieldValidator ID="Validator01" runat="server" ControlToValidate="TextBox_content"
                                            Display="Dynamic" ErrorMessage="*输入框不能为空，请重新输入！"></asp:RequiredFieldValidator>
                                        <asp:CustomValidator ID="CustomValidator2" runat="server" ControlToValidate="TextBox_content"
                                            ErrorMessage="CustomValidator" Display="Dynamic" ValidationGroup="customvalid"></asp:CustomValidator>
                                        <%--            如: 13812345678、010-87654321或fpsjk.com
                                        --%>
                                        <asp:RegularExpressionValidator ID="Validator8" runat="server" ControlToValidate="TextBox_content"
                                            Enabled="False" ErrorMessage="*您输入的信息格式不正确！" ValidationExpression="(\(\d{3}\)|\d{3}-)?\d{8}"
                                            Visible="False" Display="Dynamic"></asp:RegularExpressionValidator>
                                    </div>
                                </div>
                            </div>
                            <div class="row">
                                <label for="type" class="col-lg-2 col-md-2 col-sm-2 col-xs-2" style="text-align:right"">
                                    举&nbsp;报&nbsp;理&nbsp;由：</label>
                                <div class="field col-lg-10 col-md-10 col-sm-10 col-xs-10">
                                    <asp:RadioButtonList ID="RadioButtonList1" style="display:block" runat="server" DataSourceID="ObjectDataSource_Report_Type"
                                        DataTextField="detail" DataValueField="title" DataTextFormatString="{0:d}" Width="100%"
                                        RepeatLayout="Flow" OnSelectedIndexChanged="RadioButtonList1_SelectedIndexChanged"
                                        OnDataBound="RadioButtonList1_DataBound">
                                    </asp:RadioButtonList>
                                    <asp:TextBox ID="TextBox_Others" class="form-control" style="border:1px solid #09f" runat="server"></asp:TextBox>
                                    <asp:ObjectDataSource ID="ObjectDataSource_Report_Type" runat="server" OldValuesParameterFormatString="original_{0}"
                                        SelectMethod="Get_Data_By_Type" TypeName="DataSet_fp_DyhTableAdapters.Dyh_report_typeTableAdapter">
                                        <SelectParameters>
                                            <asp:ControlParameter ControlID="HiddenField_type" DefaultValue="" Name="type" PropertyName="Value"
                                                Type="Byte" />
                                        </SelectParameters>
                                    </asp:ObjectDataSource>
                                </div>
                            </div>
                            <div class="row" style="margin-bottom:12px">
                                <label class="col-lg-2 col-md-2 col-sm-3 col-xs-3" style="text-align:right">举&nbsp;报&nbsp;描&nbsp;述：</label>
                                <br>
                                <%--<TEXTAREA onmouseup=detailChange() id=detail onkeyup=detailChange() style="FONT-SIZE: 14px; OVERFLOW: hidden" onfocus=expand() name=detail rows=3 cols=65></TEXTAREA> 
                                --%>
                                <asp:TextBox ID="R_contentTextBox" class="col-lg-9 col-md-9 col-sm-9 col-xs-9" style="border:1px solid #09f;margin-left:15px" runat="server" Rows="5" Text='<%# Bind("R_content") %>'
                                    TextMode="MultiLine" />
                                <%-- <br />--%>
                                <br />
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="R_contentTextBox"
                                    ErrorMessage="*请发表你的评论！" Display="Dynamic">**请发表你的评论！</asp:RequiredFieldValidator>
                                &nbsp;<div id="notice" style="display: none">
                                    <input type="radio" value="从事非法业务" name="illegal">
                                    提供非法业务<br>
                                    <input type="radio" value="以提供非法业务为名行骗" name="illegal">
                                    以提供非法业务为名行骗<br>
                                    <div class="hint">
                                        为避免违法信息对网民产生误导，我们不要求输入详细描述。</div>
                                </div>
                            </div>
                            <div class="row" style="margin-bottom:0px">
                                <label for="reporter" class="col-lg-2 col-md-2 col-sm-2 col-xs-2" style="text-align:right">您&nbsp;的&nbsp;称&nbsp;呼：</label>
                                <div class="field col-lg-4 col-md-4 col-sm-4 col-xs-4" style="margin-bottom:0px">
                                    <asp:TextBox ID="IP_fromTextBox" class="form-control" style="border:1px solid #09f" onblur="blurReporter();" onfocus="focusReporter();"
                                        runat="server" Text='<%# Bind("IP_from") %>' />
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="IP_fromTextBox"
                                        ErrorMessage="*请输入您的称呼！">请输入您的称呼！</asp:RequiredFieldValidator>
                                </div>
                            </div>
                            <%--称呼可删除--%>
                            <div class="form-group" style="margin-bottom: 0">
                                <label class="col-lg-2 col-md-2 col-sm-3 col-xs-3">验&nbsp;&nbsp;&nbsp;证&nbsp;&nbsp;&nbsp;码：</label>
                                <div class="col-lg-2 col-md-2 col-sm-3 col-xs-3" style="padding-left:0px">
                                    <input type="text" class="form-control w-cxinput">
                                </div>
                                <div class="col-lg-2 col-md-2 col-sm-3 col-xs-3">
                                    <img src="image/p0.jpg">
                                </div>
                                <div class="col-lg-6 col-md-6 col-sm-3 col-xs-3">
                                    <a class="w-hyz">换一张</a>
                                </div>
                            </div>
                            <div style="display: none">
                                同时举报以下号码或网址
                                <input id="more" type="hidden" name="more">
                                <div id="morediv">
                                </div>
                            </div>
                            <%--<div class="hint">
                                <ul>
                                    <li>请勿言语粗俗或提供虚假信息。请勿公开任何个人隐私。
                                    <li>根据相关法律，您将被记录IP，并对提交的信息承担责任。 </li>
                                </ul>
                            </div>--%>
                            <div class="form-group">
                                <label class="col-lg-2 col-md-2 col-sm-3 col-xs-3"></label>
                                <div class="col-lg-10 col-md-10 col-sm-9 col-xs-9" style="padding-left:0">
                                    <a class="w-fwtk">阅读服务条款</a>
                                </div>
                            </div>
                            <%--<div class="form-group">
                                <label class="col-lg-2 col-md-2 col-sm-3 col-xs-3"></label>
                                <div class="col-lg-2 col-md-2 col-sm-3 col-xs-3" style="padding-left:0">
                                    <input type="radio" name="xxjb">游客举报
                                </div>
                                <div class="col-lg-8 col-md-8 col-sm-6 col-xs-6">
                                    <input type="radio" name="xxjb">登录举报
                                </div>
                            </div>--%>
                            <div class="form-group w-tips">
                                <label class="col-lg-2 col-md-2 col-sm-2 col-xs-2"></label>
                                <div class="col-lg-10 col-md-10 col-sm-10 col-xs-10" style="padding-left:0">
                                    <span>1.您在此提供的信息将在我们的网站中公开，仅供交流。</span><br>
                                    <span>2.请叙述客观事实，勿谩骂攻击或言语粗俗。</span><br>
                                    <span>3.根据相关法律法规，您将为您提交的信息承担责任。请保证在本站所举报内容的真实性。</span>
                                </div>
                            </div>
                            <div class="form-group w-tips">
                                <label class="col-lg-2 col-md-2 col-sm-2 col-xs-2"></label>
                                <div class="col-lg-5 col-md-5 col-sm-5 col-xs-5" style="padding-left:0">
                                    <asp:Button ID="InsertButton" class="w-tjbtn" runat="server" CausesValidation="True" CommandName="Insert"
                                    Text="提 交" />
                                </div>
                                <div class="col-lg-5 col-md-5 col-sm-5 col-xs-5">
                                    <asp:Button ID="InsertCancelButton" class="w-tjbtn" runat="server" CausesValidation="False" CommandName="Cancel"
                                    Text="重 来" style="background:#ccc" />
                                </div>
                            </div>
                            <div>
                                <%--<asp:Button ID="InsertButton" class="w-tjbtn" runat="server" CausesValidation="True" CommandName="Insert"
                                    Text="提 交" Font-Size="14px" Height="28px" />--%>
                                &nbsp;
                                
                            </div>
                        </div>
                    </InsertItemTemplate>
                    <InsertRowStyle HorizontalAlign="Left" />
                </asp:FormView>
            </ContentTemplate>
        </asp:UpdatePanel>
        <asp:ObjectDataSource ID="ObjectDataSource_Report" runat="server" InsertMethod="Insert_New_Data_Query"
            OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="DataSet_fp_DyhTableAdapters.Dyh_reportTableAdapter">
            <InsertParameters>
                <asp:Parameter Name="seqID" Type="Int32" />
                <asp:Parameter Name="IP" Type="String" />
                <asp:Parameter Name="MAC" Type="String" />
                <asp:Parameter Name="Client_Name" Type="String" />
                <asp:Parameter Name="Client_OS" Type="String" />
                <asp:Parameter Name="Client_Browse" Type="String" />
                <asp:Parameter Name="IP_from" Type="String" />
                <asp:Parameter Name="R_type" Type="String" />
                <asp:Parameter Name="R_content" Type="String" />
                <asp:Parameter Name="userid" Type="Int32" />
                <asp:Parameter Name="R_typeID" Type="Byte" />
            </InsertParameters>
        </asp:ObjectDataSource>
        <asp:HiddenField ID="HiddenField_seqID" runat="server" />
        <asp:HiddenField ID="HiddenField_type" runat="server" />

    <!--举报信息填写end-->
<script>
    $(".drop-item a").click(function () {
        $("#searchtxt").empty();
        var txt = $(this).text() + " <span class='caret'></span>";
        $("#searchtxt").append(txt);
    })
</script>
</asp:Content>
